import service from "./index";

// 按需导出
export function departmentpagecount(data) {
    return service({
        url: "/admin/department/page/count",
        method: "get",
        params: data
    })
}

export function departmentpage(data, page) {
    return service({
        url: "/admin/department/page/" + page,
        method: "get",
        params: data
    })
}
// 增加
export function department(data) {
    return service({
        url: "/admin/department",
        method: "post",
        data: data
    })
}
// 删除
export function departmentdel(data) {
    return service({
        url: `/admin/department/${data.id}`,
        method: "DELETE",
        data: data
    })
}

// 修改
export function admindepartment(data) {
    return service({
        url: `/admin/department`,
        method: "put",
        data: data
    })
}